package com.learn.string;

public class TestString01 {
    public static void main(String[] args) {
        char [] charValue = {'我','发','财','了'};
        System.out.println(new String(charValue));

        byte [] value = {65,66,22};
        System.out.println(new String(value,0,2));

        String str = "abcdefg1234567890";

        System.out.println(str.charAt(2));

        char[] charArray = str.toCharArray();
        System.out.println(charArray);

        String str1 = new String("abcdefg1234567890");
        System.out.println(str1==str);

      final   String str2 = "abcdefg12"+"34567890";
        System.out.println(str==str2);

    }
}
